<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

22期百度:<input type="text" id="search">


<script src="jquery.js"></script>
<script>
    $('#search').on('input',function () {
        console.log($(this).val());
    })

</script>

</body>
</html>